from datetime import datetime

temp = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
print(temp)

temp1 = datetime.timestamp(datetime.now())
print(round(temp1))